package com.ruoyi.product.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.product.mapper.ProductReplyMapper;
import com.ruoyi.product.domain.ProductReply;
import com.ruoyi.product.service.IProductReplyService;

/**
 * 评论回复Service业务层处理
 * 
 * @author guoguoa
 * @date 2025-01-07
 */
@Service
public class ProductReplyServiceImpl implements IProductReplyService 
{
    @Autowired
    private ProductReplyMapper productReplyMapper;

    /**
     * 查询评论回复
     * 
     * @param id 评论回复主键
     * @return 评论回复
     */
    @Override
    public ProductReply selectProductReplyById(Long id)
    {
        return productReplyMapper.selectProductReplyById(id);
    }

    /**
     * 查询评论回复列表
     * 
     * @param productReply 评论回复
     * @return 评论回复
     */
    @Override
    public List<ProductReply> selectProductReplyList(ProductReply productReply)
    {
        return productReplyMapper.selectProductReplyList(productReply);
    }

    /**
     * 新增评论回复
     * 
     * @param productReply 评论回复
     * @return 结果
     */
    @Override
    public int insertProductReply(ProductReply productReply)
    {
        return productReplyMapper.insertProductReply(productReply);
    }

    /**
     * 修改评论回复
     * 
     * @param productReply 评论回复
     * @return 结果
     */
    @Override
    public int updateProductReply(ProductReply productReply)
    {
        return productReplyMapper.updateProductReply(productReply);
    }

    /**
     * 批量删除评论回复
     * 
     * @param ids 需要删除的评论回复主键
     * @return 结果
     */
    @Override
    public int deleteProductReplyByIds(Long[] ids)
    {
        return productReplyMapper.deleteProductReplyByIds(ids);
    }

    /**
     * 删除评论回复信息
     * 
     * @param id 评论回复主键
     * @return 结果
     */
    @Override
    public int deleteProductReplyById(Long id)
    {
        return productReplyMapper.deleteProductReplyById(id);
    }
}
